﻿@model Course
@inject IRepository<Course> CourseRepository


<h3>@ViewBag.PageTitle</h3>

<form method="post" asp-controller="course" asp-action="create" class="mt-3">

    <div class="form-group row">
        <label asp-for="CourseNo" class="col-sm-2 col-form-label">课程编号：</label>
        <div class="col-sm-6">
            <input asp-for="CourseNo" class="form-control" placeholder="课程编号" />
            <span asp-validation-for="CourseNo" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <label asp-for="Title" class="col-sm-2 col-form-label">课程名称：</label>
        <div class="col-sm-6">
            <input asp-for="Title" class="form-control" placeholder="课程名称:" />
            <span asp-validation-for="Title" class="text-danger"></span>
        </div>
    </div>

    <div class="form-group row">
        <label asp-for="Credits" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-6">
            <input asp-for="Credits" class="form-control" placeholder="学分" />
            <span asp-validation-for="Credits" class="text-danger"></span>
        </div>
    </div>    

    <div class="form-group row">
        <div class="col-sm-10">
            <button type="submit" class="btn btn-primary">创建</button>
            <a asp-action="index" class="btn btn-primary">返回</a>
        </div>
    </div>
</form>
